/** Created by CUIJA on 05-19-2017.*/

merchantService.$inject = ['$http'];

function merchantService($http){

    var msc = this;
    function merchantLogin(merchant,callback){
        var request = {
                method: 'post',
                url: '/m/merchant/login',
                data: merchant
            };
            return $http(request).then(function(res, status, headers) {
                callback(null, res.data);
            });
    }


return{
    merchantLogin : merchantLogin,

};

}

module.exports = merchantService;
